﻿<Application x:Class="Starehe.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:views ="clr-namespace:Starehe.Views"
             Startup="Application_Startup" DispatcherUnhandledException="Application_DispatcherUnhandledException" 
             SessionEnding="Application_SessionEnding" Exit="Application_Exit" ShutdownMode="OnExplicitShutdown">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Starehe;component/ViewModelsDataTemplates.xaml" />
                <ResourceDictionary Source="/Starehe.Helper;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style TargetType="Button" BasedOn="{StaticResource BackButton}" x:Key="BackButtonX">
                <Setter Property="Command"
                        Value="{Binding Path=DataContext.BackCommand, RelativeSource={RelativeSource AncestorType=views:MainWindow}}"/>
            </Style>

        </ResourceDictionary>
    </Application.Resources>
</Application>
